package com.javaee.service.admin;

import com.javaee.entity.User;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.ui.Model;

public interface UserService {
    public String toAddUser(User user, Model model);
    public String addUser( User user, HttpServletRequest request);
    public String selectAllUsersByPage(Model model, int currentPage);
    public String detail(Model model, int id);
    String delete(int id);
    String toUpdate(Model model, Integer id);
    public String update(User user, String people,HttpServletRequest request) throws Exception;


}
